<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>金山安全数据管理平台</title>
    <link href="/static/login/login.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/static/login/jquery-1.8.3.js"></script>
    <script src="/static/login/style.js"></script>
</head>
<body>
<div class="login">
    <div class="login-head">
        <div class="login-head-a">
            金山安全数据管理平台
        </div>
    </div>
    <div class="login-con">
        <div class="login-a">
            <form role="form" action="/Login/login" method="post" name="loginForm" id="loginForm">
                <div class="login-b">
                    <div class="login-b-a">用户登陆</div>
                    <div class="login-b-b">
                        <ul>
                            <li>
                                <label for="userName">用户名：</label><input type="text"  id="account" name="account"/>
                                <h1 id="m-tip"></h1>
                            </li>
                            <li>
                                <label for="password">密 &nbsp;&nbsp;码：</label><input type="password" id="pw" name="pw"/>
                                <h1 id="p-tip"></h1>
                            </li>
                            <li class="login-x">
                                <div class="login-x-a">
                                    <input type="submit" name="登录"value="登录" id="login" />
                                    <div class="x"></div>
                                </div>
                                <div class="login-x-a">
                                    <input type="button" name="取消" value="取消" id="clear" onClick="cleartext();"/>
                                    <div class="x"></div>
                                </div>
                            </li>

                            <li> <p class="tip <?php if(empty($error)):?>none<?php endif;?>"><?=$error?></p></li>
                        </ul>
                    </div>
                </div>
            </form>
        </div>
    </div>
    <div class="login-foot" >
        @2016 金山安全 All Rights Reserved
    </div>
</div>
<script type="text/javascript">
    $(document).ready(function(){
        //登录帐号检查
        $("#loginForm").submit(function(){
            var _account = $("#account").val();
            var _pw = $("#pw").val();
            if(_account == "" || _account == undefined || _account == null){
                alert("用户名不能为空");
                return false;
            }
            if(_pw == "" || _pw == undefined || _pw == null){
                alert("密码不能为空");
                return false;
            }
            return true;
        });
    });
</script>
</body>
</html>